package com.tbryant.test.designpattern.cainiaocourse.singleton;

/**
 * 饿汉式单例
 *
 * @author TBryant
 * @date 2021/9/7 17:47
 */
public class Singleton1 {
    private static Singleton1 instance = new Singleton1();

    private Singleton1() {
    }

    public static Singleton1 getInstance() {
        return instance;
    }
}
